﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebBanHang.DTO;

namespace WebBanHang.GUI
{
    public partial class DNRegistry : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnDangKy_Click(object sender, EventArgs e)
        {
            DoanhNGhiep DN = new DoanhNGhiep ();
            DN.TenCongTy  = txtTenCongTy .Text;
            DN.SDT = txtDienThoai .Text;
            DN.EMAIL = txtEmail.Text;
            DN.DiaChi = txtDiaChi.Text;
            DN.USERNAME = txtTenDangNhap.Text;
            DN.PASSWORD = txtMatKhau.Text;
            DNDangNhap .Them(DN);
            Response.Redirect("~/GUI/DoanhNghiep/DNDonHang.aspx");
        }
    }
}